/**
 * Copyright &copy; 2012-2016 <a href="https://istep.lczyfz.com">Istep</a> All rights reserved.
 */
package com.lczyfz.istep.modules.resource.dao;

import com.lczyfz.istep.common.persistence.CrudDao;
import com.lczyfz.istep.common.persistence.annotation.MyBatisDao;
import com.lczyfz.istep.modules.resource.entity.ResourceQuestion;

import java.util.List;

/**
 * 考题管理DAO接口
 * @author dh
 * @version 2017-01-15
 */
@MyBatisDao
public interface ResourceQuestionDao extends CrudDao<ResourceQuestion> {

    List<ResourceQuestion> findListByRepertoryId(ResourceQuestion resourceQuestion);

    List<ResourceQuestion> findQuestionByRepertoryName(ResourceQuestion resourceQuestion);

    List<ResourceQuestion> findListByPaperId(ResourceQuestion resourceQuestion);

    List<ResourceQuestion> findQuestionListByAttribute(ResourceQuestion resourceQuestion);

    ResourceQuestion findQuestionByName(ResourceQuestion resourceQuestion);

    ResourceQuestion findQuestionById(ResourceQuestion resourceQuestion);

    List<ResourceQuestion> fionQuestionReprtory(String repertoryId);

    List<ResourceQuestion> fionQuestionType(String questionType);

}